<%@ Page Language="c#" Inherits="PHSRAG.Insight21.Admin.AdminSearchHRDepartments"
	CodeFile="AdminSearchHRDepartments.aspx.cs" %>

<%@ Register TagPrefix="cc2" Namespace="PHSRAG.WebControls" Assembly="PHSRAG.WebControls" %>
<%@ Register TagPrefix="cc1" Namespace="PHSRAG.Insight21.InsightWebControls" Assembly="PHSRAG.Insight21.InsightWebControls" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>AdminSearchHRDepartments</title>
	<link href="../Insight21.css" type="text/css" rel="stylesheet" />
</head>
<body>
	<form id="SearchHRDepartmentsForm" method="post" runat="server">
		<table class="Container">
			<tr>
				<td>
					<cc1:Header ID="header" runat="server" OnNavigate="OnHeaderNavigate" />
					<cc1:AdminSubNavigation ID="adminSubNavigation" runat="server"></cc1:AdminSubNavigation>
					<cc2:BreadCrumb ID="breadCrumb" runat="server"></cc2:BreadCrumb>
					<table cellspacing="10" cellpadding="15">
						<tr>
							<td class="Label" align="right">
								HR Department Code:&nbsp;</td>
							<td align="left">
								<asp:TextBox ID="hrDepartmentCode" runat="server"></asp:TextBox></td>
							<td align="right">
								<asp:ImageButton ID="search" runat="server" ImageUrl="../Images/b_search_grey.gif"
									OnClick="OnSearch" /></td>
						</tr>
						<tr>
							<td class="Label" align="right">
								Username:&nbsp;</td>
							<td>
								<asp:TextBox ID="userName" runat="server"></asp:TextBox></td>
							<td>
								&nbsp;</td>
						</tr>
						<tr>
							<td class="Label" align="right">
								Last Name:&nbsp;</td>
							<td>
								<asp:TextBox ID="lastName" runat="server"></asp:TextBox></td>
							<td>
								&nbsp;</td>
						</tr>
						<tr>
							<td class="Label" align="right">
								First Name:&nbsp;</td>
							<td>
								<asp:TextBox ID="firstName" runat="server"></asp:TextBox></td>
							<td>
								&nbsp;</td>
						</tr>
						<tr>
							<td>
								&nbsp;</td>
							<td>
								<asp:CustomValidator ID="searchCriteriaValidator" runat="server" EnableClientScript="false"
									ErrorMessage="Please enter at least one search criteria." Font-Bold="True" OnServerValidate="OnValidate"></asp:CustomValidator></td>
							<td>
								&nbsp;</td>
						</tr>
					</table>
					<table class="Invisible" cellspacing="10" id="dynamicTable">
						<tr>
							<td>
								<cc2:Annunciator ContainerID="dynamicTable" ID="annunciator" runat="server"></cc2:Annunciator>
							</td>
						</tr>
						<tr>
							<td>
								<cc2:ActivityIndicator ContainerID="dynamicTable" ID="activityIndicator" runat="server">
								</cc2:ActivityIndicator>
							</td>
						</tr>
					</table>
					<br />
					<cc2:PostbackGuard ID="postbackGuard" runat="server"></cc2:PostbackGuard>
					<br />
					<br />
					<div class="Scrollable">
						<table width="100%" cellspacing="0">
							<tr>
								<td>
									<asp:DataGrid ID="dataGrid" runat="server" AllowSorting="True" AutoGenerateColumns="False"
										CssClass="DataGrid" OnItemCommand="OnItemCommand" OnItemCreated="OnItemCreated"
										OnItemDataBound="OnItemDataBound" OnSortCommand="OnSort">
										<AlternatingItemStyle CssClass="DataGridAlternatingItem"></AlternatingItemStyle>
										<ItemStyle CssClass="DataGridItem"></ItemStyle>
										<HeaderStyle CssClass="DataGridHeader"></HeaderStyle>
										<Columns>
											<asp:BoundColumn DataField="HRDepartmentID" Visible="False" HeaderStyle-Width="1%"></asp:BoundColumn>
											<asp:ButtonColumn DataTextField="HRDepartmentCode" SortExpression="HRDepartmentCode"
												HeaderText="HR Department" CommandName="HRDepartmentCode" HeaderStyle-Width="20%"
												HeaderStyle-Wrap="False"></asp:ButtonColumn>
											<asp:BoundColumn DataField="HRDepartmentName" HeaderText="Name" HeaderStyle-Width="40%">
											</asp:BoundColumn>
											<asp:TemplateColumn HeaderText="Management Status" HeaderStyle-Width="39%">
												<ItemTemplate>
													<asp:RadioButtonList ID="managementStatusList" runat="server" RepeatDirection="Horizontal">
														<asp:ListItem Value="2">Managed</asp:ListItem>
														<asp:ListItem Value="3">Unmanaged</asp:ListItem>
													</asp:RadioButtonList>
												</ItemTemplate>
											</asp:TemplateColumn>
										</Columns>
									</asp:DataGrid></td>
							</tr>
						</table>
					</div>
					<div class="Scrollable">
						<table style="text-align:right">
							<tr>
								<td>
									<asp:Button ID="save" runat="server" CssClass="Button" OnClick="OnSave" Text="Save" /></td>
							</tr>
						</table>
					</div>
				</td>
			</tr>
		</table>
	</form>
</body>
</html>
